package com.share.tool.generator.xjar;

import io.xjar.XCryptos;

public class JarEncrypt {
    public static void main(String[] args) throws Exception {
        String jar = "D:\\jfkj-project\\sharing\\risk-mx-xjar\\target\\risk-mx-xjar.jar";
        String enjar = "D:\\jfkj-project\\sharing\\risk-mx-xjar\\target\\risk-mx-xjar-en.jar";
        // Spring-Boot Jar包加密
        XCryptos.encryption()
                .from(jar)
                .use("io.xjar")
                .exclude("/static/**/*")
                .exclude("/templates/**/*")
                .exclude("/META-INF/resources/**/*")
                .exclude("/resources/lgbmodel.pmml.en")
                .to(enjar);
        System.out.println("success");
    }
}
